Discover gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| xjMEaX58uRYJKwYBBAHaRw8BAQdA1touF7a/N27byj6GjIHB/9Pvm7XeaxW5 | |
| r9S9ytMw3QHNJ2JveHh1MDAwQHByb3Rvbi5tZSA8Ym94eHUwMDBAcHJvdG9u | |
| Lm1lPsLAEQQTFgoAgwWCaX58uQMLCQcJEJROM6hsH2sRRRQAAAAAABwAIHNh | |
| bHRAbm90YXRpb25zLm9wZW5wZ3Bqcy5vcmcM1vm05Mp7bYpBvZFUWTxrB9VM | |
| ZzlE+41gQz0XAPqhlAMVCggEFgACAQIZAQKbAwIeARYhBA7QM+Bl8SXaHwla | |
| jJROM6hsH2sRAADJYQD/Xzi1pCZ85nIbRUXpehcgs4cELudDGOdofX2vI8Vc | |
| zs4BAOFRUm6MkP7ctCp/eo0IiLbP3CNQhBU/U5Wsa77pBAAPzjgEaX58uRIK | |
| KwYBBAGXVQEFAQEHQAShqARzJX8xRanwxSerImMYHYGtH8Fan3O8NDbFNv1X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # TODO: Remove pve-enterprise, add pve-no-subscription repo to sources.list(*) | |
| # Update packages, install essentials | |
| apt update | |
| apt install -y build-essential git zsh htop | |
| # Update Proxmox Appliance Manager (https://forum.proxmox.com/threads/no-turnkey-fresh-install-5-1-35.38199/) | |
| pveam update |
NewerOlder